package com.cy.pj.goods.iml;

import com.cy.pj.goods.inf.GoodsDao;
import com.cy.pj.goods.pojo.Goods;
import org.apache.ibatis.session.SqlSession;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

public class ImlGoodsDao {

    @Autowired
    private SqlSession session;

    @Autowired
    private GoodsDao goodsDao;

    public List<Goods> TestFindAll(){
        String namespace = this.getClass().getPackage().getName();
        String elementId = Thread.currentThread().getStackTrace()[1].getMethodName();
        String statement = namespace + elementId;
        List<Goods> list = session.selectList(statement);
        return null;
    }
}
